package yunquan.wang.modules.base.entity;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import yunquan.wang.base.domain.IdEntity;
/**
 * 附件信息
 * @author wangyunquan
 *
 */
@Entity
@Table(name = "BASE_ATTACHINFO")
public class AttachmentInfo extends IdEntity{
	public enum StoreType{
		Local;//本地
	}
private	String fileName;
private String createUserId;
private  Date createDate;
private Long size;
private String fileType;
private String storeType;
private String stroreURL;//local is path,remote is url
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "PK_MESSAGES")
private Messages messages;
public String getFileName() {
	return fileName;
}
public void setFileName(String fileName) {
	this.fileName = fileName;
}
public String getCreateUserId() {
	return createUserId;
}
public void setCreateUserId(String createUserId) {
	this.createUserId = createUserId;
}
public Date getCreateDate() {
	return createDate;
}
public void setCreateDate(Date createDate) {
	this.createDate = createDate;
}
public Long getSize() {
	return size;
}
public void setSize(Long size) {
	this.size = size;
}
public String getFileType() {
	return fileType;
}
public void setFileType(String fileType) {
	this.fileType = fileType;
}
public String getStoreType() {
	return storeType;
}
public void setStoreType(String storeType) {
	this.storeType = storeType;
}
public String getStroreURL() {
	return stroreURL;
}
public void setStroreURL(String stroreURL) {
	this.stroreURL = stroreURL;
}

 
 

}
